Leetcode Min Cost Climbing Stairs Solution Explained - Java